package com.mnt.gui.base.buildfactory.cellhandle;

import javafx.scene.Node;

/**
 * list object to node handle
 * @author 2014-3-31 mnt.cico
 *
 * @param <M>
 * @param <N>
 */
public abstract class ListCellHandle<M, N extends Node>
{
	/**
	 * item to node execute function
	 * 2014-3-31 mnt.cico
	 * @param model
	 * @param node
	 * @throws Exception
	 */
	public abstract void execute(M item, N node) throws Exception;
	
	/**
	 * if execute error
	 * 2014-3-31 mnt.cico
	 * @param e
	 */
	public void onFailed(Exception e) {
		e.printStackTrace();
	}
}
